FROM python:3.9-slim

# 指定仓库地址
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple

# 设置环境变量
ENV PIP_INDEX_URL=$PIP_INDEX_URL
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY run.py .

EXPOSE 5100

ENTRYPOINT  ["python", "run.py"]